import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import HomeRight from '../components/HomeRight.vue'
import ArticleDetail from '../components/ArticleDetail.vue'
import Message from '../components/Message.vue'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children:[
      {path:'',component:HomeRight},
      {path:'articleDetail/:id',component:ArticleDetail},
      {path:'message',component:Message}
    ]
  },
  
 
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
